Does uwsgi workers share a common memory ? [ With Nginx ]

Posted by Yugal Jindle on Server Fault See other posts from Server Fault or by Yugal Jindle
Published on 2012-04-06T10:56:30Z Indexed on 2012/04/06 11:32 UTC
Read the original article Hit count: 143

Filed under:
|
|
|
|

I have configured my Nginx with Django uwsgi.

When the django server starts, it reads a 5MB file from the hard-disk.

Now, Without Nginx with Django default server

python manage.py runserver => Runs immediately and starts serving pages.

Problem:

With Nginx as the server

It takes very long time and several HTTP 504 before it start serving pages.

So, How does uwsgi workers work with Nginx ?

I have:

4 Workers 512 Threads each

So, is the 5MB file getting read 512 * 4 times ?

Is there a possible work around for this in Nginx / Uwsgi ?

© Server Fault or respective owner

Related posts about nginx

Related posts about webserver